#include "toprightdockwindow.h"



TopRightDockWindow::TopRightDockWindow(QWidget *parent, const Qt::AlignmentFlag &v_alignment, const Qt::AlignmentFlag &h_alignment, const QPoint &pos) :
    StackWindow(parent, v_alignment, h_alignment, pos)
{
    closeButton=new CloseButton;

    connect(closeButton,&QPushButton::clicked,[=](){
        emit closeWindow();
    });
    //this->widget->setFixedSize(500,200);
    QHBoxLayout *hlayout = new QHBoxLayout;
    hlayout->addWidget(closeButton);
    hlayout->setAlignment(h_alignment);
//    widget->setVisible(true);
    widget->setLayout(hlayout);
}




